<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2016-01-19 20:29:00, compiled from D:\chendeben\zendwork\kabasi/app/template/huodongxun/manage/nav/list.html */ ?>
<style>
.tab-sign {
	width: 55px;
	background-position: 0 0;
	display: inline-block;
	margin-left: 15px;
	height: 21px;
	vertical-align: middle;
	background-image: url(/static/images/tab_sign.png);
	background-repeat: no-repeat;
}

.icon-add {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	background: url(/static/images/bg_icon.png) no-repeat 0 0;
}
</style>
<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title">导航管理</h3>
			</div>
			<div class="col-md-1"><a href="/manage/nav/edit?pid=0" class="btn btn-block btn-success">新 增</a></div>
			<!-- /.box-header -->
			<div class="box-body">
				<table id="datatable" class="table table-bordered table-striped">
					<thead>
						<tr>
							<th class="text-center" style="width:10%">ID</th>
							<th class="text-center" style="width:20%">显示</th>
							<th class="text-center" style="width:30%">名称</th>
							<th class="text-center" style="width:20%">排序</th>
							<th class="text-center" style="width:20%">操作</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($data as $k=>$v) { ?>
						<tr>
							<td class="text-center">
								<?php echo $v['id'];?>
							</td>
							<td class="text-center">
								<?php echo $v['status']==1?"显示":"隐藏"; ?>
							</td>
							<td>
								<input _id="<?php echo $v['id'];?>" value="<?php echo $v['title'];?>"> 
								<a href="/manage/nav/edit?pid=<?php echo $v['id'];?>" title="添加子分类" class="add-sub-cate"> 
									<i class="icon-add"></i>
								</a>
							</td>
							<td>
								<?php echo $v['sort'];?>
							</td>
							<td class="text-center"><a class="btn btn-primary" href="/manage/nav/edit?id=<?php echo $v['id'];?>">编辑</a>&nbsp;<a href="/manage/nav/del?id=<?php echo $v['id'];?>" class="btn btn-danger" onclick="if(!confirm('确定删除？'))return false;">删除</a></td>
						</tr>
						<?php if (isset($v['sub'])) { ?>
						<?php foreach ($v['sub'] as $k2=>$v2) { ?>
						<tr>
							<td class="text-center">
								<?php echo $v2['id'];?>
							</td>
							<td class="text-center">
								<?php echo $v2['status']==1?"显示":"隐藏"; ?>
							</td>
							<td><span class="tab-sign"></span><input value="<?php echo $v2['title'];?>"><a href="/manage/nav/edit?pid=<?php echo $v2['id'];?>" title="添加子分类" class="add-sub-cate"> <i class="icon-add"></i></td>
							<td><span class="tab-sign"></span> <?php echo $v2['sort'];?></td>
							<td class="text-center"><a class="btn btn-primary" href="/manage/nav/edit?id=<?php echo $v2['id'];?>">编辑</a>&nbsp;<a href="/manage/nav/del?id=<?php echo $v2['id'];?>" class="btn btn-danger" onclick="if(!confirm('确定删除？'))return false;">删除</a></td>
						</tr>
							<?php if (isset($v2['sub'])) { ?>
							<?php foreach ($v2['sub'] as $k3=>$v3) { ?>
							<tr>
								<td class="text-center">
									<?php echo $v3['id'];?>
								</td>
								<td class="text-center">
									<?php echo $v3['status']==1?"显示":"隐藏"; ?>
								</td>
								<td><span class="tab-sign"></span><span class="tab-sign"></span><input value="<?php echo $v3['title'];?>"></td>
								<td><span class="tab-sign"></span><span class="tab-sign"></span> <?php echo $v3['sort'];?></td>
								<td class="text-center"><a class="btn btn-primary" href="/manage/nav/edit?id=<?php echo $v3['id'];?>">编辑</a>&nbsp;<a href="/manage/nav/del?id=<?php echo $v3['id'];?>" class="btn btn-danger" onclick="if(!confirm('确定删除？'))return false;">删除</a></td>
							</tr>
							<?php } ?>
							<?php } ?>
						<?php } ?>
						<?php } ?>
						<?php } ?>
					</tbody>
				</table>
			</div>
			<!-- /.box-body -->
		</div>
		<!-- /.box -->
	</div>
	<!-- /.col -->
</div>
<!-- SlimScroll -->
<script src="/adminlte/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/adminlte/plugins/fastclick/fastclick.min.js"></script>
<!-- /.row -->
